{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

<div>
    {% block label %}
        {% if filter.description.options.name is defined %}
            {{ form_label(filter.field, filter.description.options.name) }}
        {% else %}
            {{ form_label(filter.field) }}
        {% endif %}
        <br />
    {% endblock %}

    <div class="sonata-ba-field {% if filter.field.haserrors %}sonata-ba-field-error"{% endif %}">
        {% block field %}{{ form_field(filter.field) }}{% endblock %}
    </div>
</div>